const nodata = require('../tw-lib-base/no-data/props')

module.exports = {
  // 整体
  height: {
    type: String,
    default: '380px',
    name: '图表容器高度',
    filedType: 'string'
  },
  width: {
    type: String,
    default: '860px',
    name: '图表容器宽度',
    filedType: 'string'
  },

  data: {
    type: Array,
    default () {
      return [
        {
          "name": "天闻数媒",
          "value": 50
        },
        {
          "name": "AI课堂",
          "value": 28
        },
        {
          "name": "智慧云",
          "value": 46
        },
        {
          "name": "校比玲",
          "value": 15
        },
        {
          "name": "AI测评",
          "value": 425
        },
        {
          "name": "教学中心",
          "value": 125
        },
        {
          "name": "初中生",
          "value": 625
        },
        {
          "name": "高中生",
          "value": 25
        },
        {
          "name": "幼儿园",
          "value": 55
        },
        {
          "name": "招生考试",
          "value": 125
        },
        {
          "name": "志愿填报",
          "value": 25
        },
        {
          "name": "中本志愿",
          "value": 25
        },
        {
          "name": "长沙项目",
          "value": 325
        },
        {
          "name": "门户系统",
          "value": 825
        }
      ]
    },
    name: '图表数据集',
    filedType: 'api'
  },
  dataList: {
    type: Array,
    default () {
      return [
        {
          "name": "天闻数媒"
        },
        {
          "name": "AI课堂"
        },
        {
          "name": "智慧云"
        },
        {
          "name": "校比玲"
        },
        {
          "name": "AI测评"
        },
        {
          "name": "教学中心"
        },
        {
          "name": "初中生"
        },
        {
          "name": "高中生"
        },
        {
          "name": "幼儿园"
        },
        {
          "name": "招生考试"
        },
        {
          "name": "志愿填报"
        },
        {
          "name": "中本志愿"
        },
        {
          "name": "长沙项目"
        },
        {
          "name": "门户系统"
        }
      ]
    },
    name: '弹窗数据集',
    filedType: 'api'
  },
  bgColor: {
    type: String,
    default: '#fff',
    name: '背景颜色',
    filedType: 'color'
  },

  icon: {
    type: String,
    default: '',
    name: '自定义图形形状',
    filedType: 'string'
  },
  showTooltip: {
    type: Boolean,
    default: true,
    name: '是否显示提示框',
    filedType: 'switch'
  },
  minSize: {
    type: String,
    default: '10',
    name: '最小字体',
    filedType: 'string'
  },
  maxSize: {
    type: String,
    default: '40',
    name: '最大字体',
    filedType: 'string'
  },
  shape: {
    type: String,
    default: 'circle',
    name: '图形形状',
    filedType: 'select',
    options: [
      {
        name: 'circle',
        value: 'circle'
      },
      {
        name: 'cardioid',
        value: 'cardioid'
      },
      {
        name: 'diamond',
        value: 'diamond'
      },
      {
        name: 'triangle-forward',
        value: 'triangle-forward'
      },
      {
        name: 'triangle',
        value: 'triangle'
      },
      {
        name: 'pentagon',
        value: 'pentagon'
      },
      {
        name: 'star',
        value: 'star'
      }
    ]
  },
  drawOutOfBound: {
    type: Boolean,
    default: true,
    name: '超出显示',
    filedType: 'switch'
  },
  showDialog: {
    type: Boolean,
    default: true,
    name: '开启点击事件',
    filedType: 'switch'
  },
  gridSize: {
    type: String,
    default: '30',
    name: '词云间距',
    filedType: 'string'
  },
  value: {
    type: String,
    default: '',
    name: '选中标签',
    filedType: 'value',
    dataSource: {
      from: 'list',
      type: 'array',
      labelKey: 'label',
      valueKey: 'value'
    }
  },
  colors: {
    type: Array,
    default () {
      return [
        'rgb(12,57,176)',
        'rgb(16,83,190)',
        'rgb(18,102,201)',
        'rgb(21,122,214)',
        'rgb(25,140,220)',
        'rgb(29,161,223)',
        'rgb(32,180,226)',
        'rgb(37,205,231)'
      ]
    },
    name: '调色板',
    nameTip: '图表按此处指定的值循环取色',
    filedType: 'list',
    subType: 'color',
    subDefault: '#2bd3bd',
    max: 20
  },

  isSchoolExh: {
    type: Boolean,
    default: false,
    name: '学校大屏定制',
    nameTip: '学校大屏用错组件，这个组件是定制的，尽量少用',
    filedType: 'switch'
  },

  ...nodata
}
